package extended

import (
	"gvm/instructions/base"
	"gvm/rtda"
)

// GOTO_W Branch always (wide index)
type GOTO_W struct {
	offset int
}

func (gw *GOTO_W) FetchOperands(reader *base.ByteCodeReader) {
	gw.offset = int(reader.ReadInt32())
}
func (gw *GOTO_W) Execute(jFrame *rtda.JFrame) {
	base.Branch(jFrame, gw.offset)
}
